package com.example.myproject.service;

import com.example.myproject.dto.exchange.ExchangeRequest;
import com.example.myproject.dto.exchange.ExchangeResponse;
import com.example.myproject.dto.exchange.TitleInfoDTO;

import java.util.List;

public interface ExchangeService {
    // 点券兑换魔力值
    ExchangeResponse exchangeTicketToMagic(Long userId, ExchangeRequest request);

    // 点券兑换积分
    ExchangeResponse exchangeTicketToPoint(Long userId, ExchangeRequest request);

    // 魔力值兑换勋章
    ExchangeResponse exchangeMagicToTitle(Long userId, Long titleId);

    // 获取用户拥有的所有勋章
    List<TitleInfoDTO> getUserTitles(Long userId);

    // 获取所有可兑换的勋章
    List<TitleInfoDTO> getAllAvailableTitles();
    // 新增：点券充值
    ExchangeResponse rechargeTicket(Long userId, ExchangeRequest request);
}